<?php
/*
Shoring Prayer times on front
*/

//$year = date('Y');
//echo 'year '.$year;
$today = date('Y-m-d');
//echo 'today '.$today;
$date = strtotime($today);

$times = $prayTime->getPrayerTimes($date, 29, 48, +3);
$fajr 		= $times[0];
$sunrise	= $times[1];
$duhr		= $times[2];
$asr		= $times[3];
$maghrib	= $times[5];
$isha		= $times[6];
//$day = date('M d', $date);
//print $day. "\t". implode("\t", $times). "\n";
?>

<style>
#pt_box
{
	width:265px;
	border:#999 1px solid;
}
#pt_box table tr.head td
{
	background-color:#999;
	border-bottom:#0F0 1px solid;
}

</style>

<div id="pt_box">
<table width="100%" border="0">
  <tr class="head">
    <td width="100" align="center">الفجر</td>
    <td width="100" align="center">الشروق</td>
    <td width="100" align="center">الظھر</td>
  </tr>
  <tr>
    <td align="center"><?= $fajr?></td>
    <td align="center"><?= $sunrise?></td>
    <td align="center"><?= $duhr?></td>
  </tr>
  
  <tr class="head">
    <td align="center">العصر</td>
    <td align="center">المغرب</td>
    <td align="center">العشاء</td>
  </tr>
  <tr>
    <td align="center"><?= $asr?></td>
    <td align="center"><?= $maghrib?></td>
    <td align="center"><?= $isha?></td>
  </tr>
</table>

</div>	




	